package animal;

public class AnimalDemo {
    public static void main(String[] args) {
        Cat cat = new Cat("cat", "1");
        System.out.println(cat.getAge() + cat.getName());
        cat.catchMouse();


        cat.setAge("2");
        cat.setName("Hi");
        System.out.println(cat.getAge() + cat.getName());
        cat.eatFood();

        Dog dog = new Dog("dog", "1");
        System.out.println(dog.getAge() + dog.getName());
        dog.watchDoor();


        dog.setAge("2");
        dog.setName("Hello");
        System.out.println(dog.getAge() + dog.getName());
        dog.eatFood();

    }
}
